package top.igotcha.commonutils.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;

/**
 * @author Gotcha
 * @date 2021/8/8
 * @describe
 */
public class InitVodClient {
    public static DefaultAcsClient initVodClient(String accessKeyId,String accessKeySecret) throws ClientException{
        String regionId = "cn-shanghai"; //点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient clent = new DefaultAcsClient(profile);
        return clent;
    }
}
